package itsm.isperp.workflow.engine.identity.factory;

import itsm.isperp.workflow.engine.identity.persistence.ActivitiGroupManager;

import org.activiti.engine.impl.interceptor.Session;
import org.activiti.engine.impl.interceptor.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 组管理器工程
 * 
 * @author lizx
 * @date 2013-3-7
 */
public class ActivitiGroupManagerFactory implements SessionFactory {

	@Autowired
	protected ActivitiGroupManager activitiGroupManager;

	@Override
	public Class<?> getSessionType() {
		return ActivitiGroupManager.class;
	}

	@Override
	public Session openSession() {
		return activitiGroupManager;
	}

}
